#!/usr/bin/env node

const { Writable } = require('stream')

class GreenStream extends Writable {
  constructor() {
    super()
  }

  _write(chunk, encoding, callback) {
    import('chalk').then(chalk => process.stdout.write(chalk.default.greenBright(chunk)))
    callback()
  }
}

process.stdin.pipe(new GreenStream())